﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.SystemCore.DTO.RoleField;

/// <summary>
///     角色字段更新模型
/// </summary>
public class RoleFieldUpdateDTO
{
    /// <summary>
    ///     角色id
    /// </summary>
    [Required(ErrorMessage = "角色id不可为空")]
    public string RoleId { get; set; }

    /// <summary>
    ///     菜单id
    /// </summary>
    [Required(ErrorMessage = "菜单id不可为空")]
    public string MenuId { get; set; }

    /// <summary>
    ///     角色字段子单
    /// </summary>
    [Required(ErrorMessage = "角色字段id不可为空")]
    public List<string> FieldId { get; set; }
}